package com.xu.sso.db.service;

import com.xu.sso.db.model.base.ApiAuth;

import java.util.List;

public interface ApiAuthDBService {

    List<ApiAuth> findAllApiAuth();

    ApiAuth findApiAuthId(Integer id);

    ApiAuth findApiAuthByAppId(String appId);

    int createApiAuth(ApiAuth apiAuth);

    int updateApiAuth(ApiAuth apiAuth);

    int updateApiAppName(String appId, String appName);

    int updateApiAuthStatus(Integer id, String status);

    int deleteApiAuth(Integer id);

    int deleteApiAuthByAppId(String appId);

}
